package com.aiks.single.singlemavenproject.common;

import java.io.Serializable;

/**
 * 基础返回.
 *
 * @author <a href="mailto:yuanz@yxt.com">yuanz</a>
 * @date 2021-08-31 12:10
 * @since 1.0.0
 **/
public abstract class BaseResult<T> implements Serializable {

    private boolean success = false;
    /**
     * 信息
     */
    private String message;
    /**
     * 数据
     */
    private T data;
    /**
     * 状态码
     */
    private String code;
    /**
     * 时间戳
     */
    private String timestamp;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }
}
